import Vue from 'vue'
import VueRouter from 'vue-router'

import Manage from "../views/Manage";

// 使用路由
Vue.use(VueRouter)

export default new VueRouter({
  //去除页面上的 #
  mode: 'history', //加入这个页面路径从http://localhost:8080/home#/home变成http://localhost:8080/home

  routes: [
    {
      path: '/',//默认的路径
      name: 'Manage',
      component: Manage,
      redirect:"/Home", //重定向到home 默认展示的页面
      children:[
        {path: '/home', name: '主页', component: ()=>import('../views/Home'),},
        {path: '/person', name: '个人', component: ()=>import('../views/person'),},


      ]
    },

/*    {
      path:'/Login',
      name:'Login.vue',
      component:()=>import('../views/Login')
    },*/



  ]
})
